package com.iwhalecloud.citybrain.flow.platform.manager.application.common.context;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Builder;
import lombok.Data;
import org.flowable.bpmn.model.BpmnModel;
import org.flowable.engine.repository.Model;

/**
 * @author lilh
 * @date 2021/4/26 14:16
 */
@Data
@Builder
public class ModelDeploymentContext {

    private String deployId;

    private String modelId;

    private String processName;

    /**
     * 模型数据
     */
    private Model model;

    /**
     * 模型元数据
     */
    private byte[] modelBytes;

    /**
     * 根据元数据构建出来的json node
     */
    private JsonNode modelJson;

    /**
     * 根据modelJson转化出来的bpmn model
     */
    private BpmnModel bpmnModel;

}
